<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
<head>

  <%@ include file="/WEB-INF/include/meta.jsp"%>
  <%@ include file="/WEB-INF/include/css.jsp"%>
  
  <link href="${ctx.resource}/css/shiftform.css" rel="stylesheet">
  <link href="${ctx.resource}/css/select2.css" rel="stylesheet">
  <link href="${ctx.resource}/css/select2-bootstrap.css" rel="stylesheet">
  
  <title></title>

</head>

<body>

  <%@ include file="/WEB-INF/include/header.jsp"%>

  <%@ include file="/WEB-INF/include/menu.jsp"%>

  <div class="container main-content">

    <div class="panel panel-default beast-panel beast-panel-layout">

      <div class="panel-heading">
        <ol class="breadcrumb">
          <li><a href="${ctx.host}/aduser">广告主管理</a></li>
          <li class="active">广告主审核</li>
        </ol>
      </div>

      <div class="panel-body">

        <div class="col-xs-2 beast-panel-layout-left no-horizontal-padding">
          <%@ include file="/WEB-INF/include/submenu.jsp"%>
        </div>

        <div class="col-xs-10 beast-panel-layout-right">

          <div class="beast-breadcrumb-wrapper">
            <div class="beast-breadcrumb clearfix">
              <h2><i class="glyphicon glyphicon-fire" title="广告主审核"></i>&nbsp;&nbsp;<span>广告主审核&nbsp;-&nbsp;审核详情</span></h2>
            </div>
          </div>
          
          <div class="beast-toolbar-wrapper top-margin-20 clearfix">
            <div class="text-right" style="padding-top: 10px; padding-bottom: 10px; border-bottom: 2px solid #CCC; ">
              <button type="button" class="btn btn-default btn-shadow btn-shadow-default demo2do-btn" onclick="window.location.href='${ctx.host}/aduser-audits'"><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;返回</button>
              <a href="${ctx.host}/adusers/${aduser.id}/audit" data-toggle="modal" data-target="#"  class="btn btn-success btn-shadow btn-shadow-success demo2do-btn" ><i class="glyphicon glyphicon-arrow-left"></i>&nbsp;&nbsp;审核通过</a>
            </div>  
          </div>
          
          <div class="row">
            <div class="col-xs-7">
            
              <div class="beast-breadcrumb-wrapper top-margin-20">
                <ul class="nav nav-pills beast-breadcrumb-nav">
                  <li class="pull-left active"><a href="javascript:void(0);">基本信息</a></li>
                </ul>
                <div id="customer-profile-operation" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 10px;">
                  <a href="${ctx.host}/adusers/${aduser.id}/profile" data-toggle="modal" data-target="#" >编辑</a>
                </div>
                <a id="customer-attr-operation" class="hidden" href="${ctx.host}/auders-audits/1/edit-base" data-toggle="modal" data-target="#" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 10px;">编辑</a>
              </div> 
              
              <div class="form-horizontal bottom-margin-20">
                <div class="form-group" style="margin-top: 20px;">
                  <label class="col-xs-3 control-label">用户编号：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static">${aduser.id}</p></div>
                </div>
                <div class="form-group">
                  <label class="col-xs-3 control-label">用户姓名：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static">${aduser.profile.userName}</p></div>
                </div>
                <div class="form-group">
                  <label class="col-xs-3 control-label">联系方式：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static">${aduser.mobile}</p></div>
                </div>
                <div class="form-group">
                  <label class="col-xs-3 control-label">联系人：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static">${aduser.profile.nickName}</p></div>
                </div>
                <div class="form-group">
                  <label class="col-xs-3 control-label">用户级别：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static">${aduser.profile.aduserLevel.name}</p></div>
                </div>
                <div class="form-group">
                  <label class="col-xs-3 control-label">账号状态：</label>
                  <div class="col-xs-8 pull-left"><p class="form-control-static"><label class="label label-info">${aduser.status.description}</label></p></div>
                </div>
              </div>
              
            </div>
               
            <div class="col-xs-5">
              <div class="beast-box" style="margin-top:20px;">
                <div class="clearfix box-bar beast-box-bar beast-box-header">
                  <h2 class="pull-left">审核流程</h2>
                </div>
                <div class="clearfix beast-box-item">
                  <label class="pull-left">1.&nbsp;&nbsp;查看&nbsp;<span style="color: #ff8111">基本信息</span>：确认基本信息是否&nbsp;<span style="color: #ff8111">出错</span>。</label>
                </div>
                <div class="clearfix beast-box-item">
                  <label class="pull-left">2.&nbsp;&nbsp;查看&nbsp;<span style="color: #ff8111">公司信息</span>：&nbsp;<span style="color: #ff8111">点击编辑</span>完善信息。</label>
                </div>
                <div class="clearfix beast-box-item">
                  <label class="pull-left">4.&nbsp;&nbsp;查看&nbsp;<span style="color: #ff8111">财务信息</span>：&nbsp;<span style="color: #ff8111">点击充值</span></label>
                </div>
                <div class="clearfix beast-box-item">
                  <label class="pull-left">3.&nbsp;&nbsp;点击&nbsp;<span style="color: #ff8111">审核通过</span></label>
                </div>
              </div>
            </div>
          </div>

          
          
          <div class="beast-breadcrumb-wrapper top-margin-20">
            <div class="beast-breadcrumb yellow clearfix">
              <h2>
                <span>公司信息</span>
              </h2>
              <a href="${ctx.host}/adusers/${aduser.id}/company" data-toggle="modal" data-target="#" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 10px;">编辑</a>
            </div>
          </div> 
          
          <div class="form-horizontal bottom-margin-20">
            
            <div class="form-group">
              <label class="col-xs-2 control-label">公司全称：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.name}</p></div>
              <label class="col-xs-2 control-label">公司电话：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.phone}</p></div>
            </div>
            
            <div class="form-group">
              <label class="col-xs-2 control-label">企业官网：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static"><a href="http://${aduser.company.website}" target="_blank">${aduser.company.website }</a></p></div>
              <label class="col-xs-2 control-label">企业邮箱：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.email}</p></div>
            </div>
            
            <div class="form-group">
              <label class="col-xs-2 control-label">企业QQ：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.qq}</p></div>
              <label class="col-xs-2 control-label">用户职位：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.job}</p></div>
            </div>
            
            <div class="form-group">
              <label class="col-xs-2 control-label">企业地址：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static">${aduser.company.address}</p></div>
            </div>
            
          </div>
          
          <div class="beast-breadcrumb-wrapper top-margin-20">
            <div class="beast-breadcrumb yellow clearfix">
              <h2>
                <span>财务信息</span>
              </h2>
              <c:if test="${aduser.status.name eq 'AUDITED' }">
                <a href="${ctx.host}/adusers/${aduser.id}/balance" data-toggle="modal" data-target="#" style="position: absolute; right: 0px; top: 0px; margin-top: 10px; margin-right: 10px;">充值</a>
              </c:if>
            </div>
          </div> 
          
          <div class="form-horizontal bottom-margin-20">
            
            <div class="form-group">
              <label class="col-xs-2 control-label">账户余额：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static text-success">￥&nbsp;<fmt:formatNumber value="${aduser.aduserBalance.balance/100}" pattern="#.##"/></p></div>
              <label class="col-xs-2 control-label">消费金额总计：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static text-warning">￥&nbsp;<fmt:formatNumber value="${aduser.aduserBalance.consumeTotal/100}" pattern="#.##"/></p></div>
            </div>
            <div class="form-group">
              <label class="col-xs-2 control-label">充值金额总计：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static text-danger">￥&nbsp;<fmt:formatNumber value="${aduser.aduserBalance.depositTotal/100}" pattern="#.##"/></p></div>
              <label class="col-xs-2 control-label">质检退款总计：</label>
              <div class="col-xs-4 pull-left"><p class="form-control-static text-danger">￥&nbsp;<fmt:formatNumber value="${aduser.aduserBalance.refundTotal/100}" pattern="#.##"/></p></div>
            </div>
            
          </div>
          
        </div>
          
      </div>

    </div>

  </div>

  <%@ include file="/WEB-INF/include/footer.jsp"%>
  <%@ include file="/WEB-INF/include/script.jsp"%>
  <script src="${ctx.resource}/js/shiftform.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.js"></script>
  <script src="${ctx.resource}/js/bootstrap.validate.en.js"></script>
  <script src="${ctx.resource}/js/select2.min.js"></script>
  <script src="${ctx.resource}/js/select2_locale_zh-CN.js"></script>
  <script src="${ctx.resource}/js/tab-layzing-loading.js"></script>
  <script>
    $(document).ready(function(){
       $('[data-toggle="tab"]').on('show.bs.tab', function(e) {
          
          // switch link
          var $current = $(e.target),
          $prev = $(e.relatedTarget),
          url = $(e.target).attr('href');
          $($current.data('target') + '-operation').removeClass('hidden');
          $($prev.data('target') + '-operation').addClass('hidden');
          
          var aa = $current.data('loaded');
          if(!aa) {
            setTimeout(function() {
                $current.tabLazyLoading(url);
            }, 1000);
          }
          
        });
    });
  </script>

</body>

</html>
